<template>
  <!-- 消息通知 -->
  <div class="container">
    <div class="top">
      <img class="icon" src="../../assets/img/my/icon-notice.png" alt srcset>
      <div class="content">
        <div class="title">通知</div>
        <div class="tip">您有3条新的消息通知</div>
      </div>
    </div>
    <div class="main">
      <van-cell title="全部消息" is-link/>
      <div class="list">
        <div v-for="item in 8" class="item">
          <img class="headimg" src="../../assets/img/my/headimg.png" alt>
          <div class="info">
            <div>
              <span class="name">叶明珠</span>
              <span class="time">5分钟前</span>
            </div>
            <div class="msg van-ellipsis">您好,开会记录已发，这边有份报告需要您审核...</div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<style lang="less" scoped>
.container {
  padding: 20px;
  background-color: #fff;
}
.top {
  display: flex;
  padding: 10px;
  align-items: center;
  background-color: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  .icon {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    margin-right: 10px;
  }
  .content {
    flex: 1;
    .title {
      font-weight: bold;
      height: 26px;
      line-height: 26px;
    }
    .tip {
      color: #999;
      font-size: 12px;
      line-height: 20px;
    }
  }
}
.main {
    margin-top: 20px;
  .van-cell {
    font-weight: bold;
  }
  .van-cell:not(:last-child)::after {
    border-bottom: none;
  }
}
.list {
  .item {
    display: flex;
    padding: 10px;
    align-items: center;
    border-bottom: 1px solid #eee;
    .headimg {
      flex: 0 0 56px;
      width: 56px;
      height: 56px;
      border-radius: 50%;
      margin-right: 10px;
    }
    .info {
      flex: 1;
      .name {
        font-weight: bold;
      }
      .time {
        float: right;
      }
      .msg {
        margin-top: 12px;
        width: 100%;
        font-size: 12px;
        color: #999;
      }
    }
  }
}
</style>
